import {createStore} from 'redux';
// 导入redux-devtools-extension
import {composeWithDevTools} from 'redux-devtools-extension';
// 导入注册中间的方法applyMidleware()
import {applyMiddleware} from 'redux';
// 导入redux-thunk; 支持异步action
import thunk from 'redux-thunk';
// 导入reduces
import reducers from './reducers'; 

export const store=createStore(reducers,composeWithDevTools(applyMiddleware(thunk)));